/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.common.domain.DataBean;
import com.koron.purpose.bean.SafetyPualificationBean;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.List;
import java.util.Map;

public interface SafetyPualificationService {

    /**
     * 列表查询
     * @param wcorpCode 水司code
     * @param corpName 公司名称
     * @param pualificationType 资质类型 code
     * @param acquisitionTimeStart  获取时间(yyyy-MM-dd)
     * @param acquisitionTimeStop 获取时间(yyyy-MM-dd)
     * @param page 当前页
     * @param pageSize 每页条数
     * @return
     */
    MessageBean<DataBean<Map>> queryForList(String wcorpCode, String corpName, String pualificationType,
                                            String acquisitionTimeStart, String acquisitionTimeStop,
                                            Integer page, Integer pageSize);

    /**
     * 导出查询
     * @param wcorpCode 水司code
     * @param corpName
     * @param pualificationType
     * @param acquisitionTimeStart
     * @param acquisitionTimeStop
     * @return
     */
    List<Map> queryForList(String wcorpCode, String corpName, String pualificationType,
                      String acquisitionTimeStart, String acquisitionTimeStop);

    /**
     * 根据ID查询安全资质
     * @param id
     * @return
     */
    MessageBean queryById(String id);

    /**
     * 新增安全资质
     * @param user 用户信息
     * @param bean 安全资质 信息
     * @param files 附件
     * @return
     */
    MessageBean insertSafetyPuali(StaffBean user, SafetyPualificationBean bean, MultipartFile[] files);

    /**
     * 修改安全资质
     * @param user 用户信息
     * @param bean 安全资质 信息
     * @param files 附件
     * @return
     */
    MessageBean updateSafetyPuali(StaffBean user, SafetyPualificationBean bean, MultipartFile[] files);

    /**
     * 根据ID删除 安全资质
     * @param id
     * @return
     */
    MessageBean deleteSafetyPualiById(String id);
}
